package cn.wei.sdd.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
//@ToString
public enum TakeMoneyStatusEnum {

//   状态（-1：提现失败，0：审核中，1：打款中，2：提现成功）
    TAKE_ERROR(-1, "提现失败"),
    TAKE_ING(0, "审核中"),
    TAKE_PAY(1, "打款中"),
    TAKE_SUCCESS(2, "提现成功");

    private Integer status;
    private String msg;

    public static String getMsgByStatus(int status) {
        TakeMoneyStatusEnum arrObj[] = TakeMoneyStatusEnum.values();
        for (TakeMoneyStatusEnum obj : arrObj) {
            if (status == obj.getStatus().intValue()) {
                return obj.getMsg();
            }
        }
        return "";
    }
}

